#
class Person:
    address = "北京"
    def __init__(self,name):
        self.name = name

    @classmethod
    def modify_adder(cls,address):
        cls.address = address

# todo 修改类属性的方法1:使用类修改

Person.modify_adder("武汉")
print(Person.address)

# TODO 方式二:使用对象方法修改
person = Person("张三")
person.modify_adder("湖北省")
print(person.address)

